package FlowGraph.Nodes;

import antlr.collections.AST;

import util.Line;
import FlowGraph.FlowGraphNode;

//////////////////////////////////////////////////////////////////////////
//// ThrowNode
/**

@author Ivan Jeukens
@version v 0.1 03/10/2001
*/
public class ThrowNode extends FlowGraphNode {

    public ThrowNode(AST statement) {
        super(statement, THROW);
        _expression = statement.getFirstChild();
    }

    ///////////////////////////////////////////////////////////////////
    ////                        public methods                     ////
        
    public String toString() {
        return "Throw";   
    }

    public AST getExpression() {
        return _expression;
    }
    
    public void setLine(Line l) {
        _line = l;
    }
    
    public Line getLine() {
        return _line;
    }

    ///////////////////////////////////////////////////////////////////
    ////                      private variables                    ////
    
    private AST _expression;
    private Line _line;
}
